package com.king.micro.common.exception;

/**
 * @author 赵晓光
 *         created 2017/11/10 16:10
 *         copyright 2017 micro
 * @FileName: BaseException.java
 * package: com.king.micro.common.exception
 */
public abstract class BaseException extends RuntimeException {

    private  int code ;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public BaseException(int code, String message) {
        super(message);
        this.code = code;
    }

    public BaseException(int code, String message, Throwable cause) {
        super(message,cause);
        this.code = code;
    }

    public BaseException(){}
}
